CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - matlab tutorial
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - matlab tutorial - List
[
Other
]
INTRODUCTION TO MATLAB FOR
DL : 0
1 Tutorial lessons 1 1 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Basic features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 A minimum MATLAB session . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3.1 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3.2 Using MATLAB as a calculator . . . . . . . . . . . . . . . . . . . . . 4 1.3.3 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4.1 Creating MATLAB variables . . . . . . . . . . . . . . . . . . . . . . . 5 1.4.2 Overwriting variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.3 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.4 Making corrections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.5 Controlling the hierarchy of operations or precedence . . . . . . . . . 6 1.4.6 Controlling the appearance of °oating point number . . . . . . . . . . 8 1.4.7 Managing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4.8 Keeping track of your work session . . . . . . . . . . . . . . . . . . . 9 1.4.9 Entering multiple statements per line . . . . . . . . . . . . . . . . . . 9 1.4.10 Miscellaneous commands . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.4.11 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 Tutorial lessons 2 12 2.1 Mathematical functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Basic plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.2 Creating simple plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.3 Adding titles, axis labels, and annotations . . . . . . . . . . . . . . . 15 2.2.4 Multiple data sets in one plot . . . . . . . . . . . . . . . . . . . . . . 16 2.2.5 Specifying line styles and colors . . . . . . . . . . . . . . . . . . . . . 17 2.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5 Matrix generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.1 Entering a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.2 Entering a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.5.3 Matrix indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.5.4 Colon operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.5 Linear spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.6 Colon operator in a matrix . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.7 Creating a sub-matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.5.8 Deleting row or column . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.5.9 Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.5.10 Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.11 Transposing a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.12 Concatenating matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.13 Matrix generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2.5.14 Special matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 2.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3 Array operations and Linear equations 30 3.1 Array operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.1.1 Matrix arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30 3.1.2 Array arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30 3.2 Solving linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.2.1 Matrix inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 3.2.2 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4 Introduction to programming in MATLAB 35 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.2 M-File Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.2.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.2.2 Script side-eRects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.3 M-File functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.3.1 Anatomy of a M-File function . . . . . . . . . . . . . . . . . . . . . . 38 4.3.2 Input and output arguments . . . . . . . . . . . . . . . . . . . . . . . 40 4.4 Input to a script ¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.5 Output commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5 Control °ow and operators 43 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.2 Control °ow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.2.1 The ``if...end'' structure . . . . . . . . . . . . . . . . . . . . . . . 43 5.2.2 Relational and logical operators . . . . . . . . . . . . . . . . . . . . . 45 5.2.3 The ``for...end'' loop . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.2.4 The ``while...end'' loop . . . . . . . . . . . . . . . . . . . . . . . 46 5.2.5 Other °ow structures . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.2.6 Operator precedence . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.3 Saving output to a ¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6 Debugging M-¯les 49 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2 Debugging process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2.1 Preparing for debugging . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.2 Setting breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.3 Running with breakpoints . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.4 Examining values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.5 Correcting and ending debugging . . . . . . . . . . . . . . . . . . . . 51 6.2.6 Ending debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.7 Correcting an M-¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Date
: 2012-02-26
Size
: 252.23kb
User
:
taffy320
[
Windows Develop
]
VC调用matlab图像处理工具箱进行canny边缘检测
DL : 1
VC调用matlab图像处理工具箱进行canny边缘检测,含pdf教程-edge detection by VC calling matlab image toolbox, pdf tutorial included.
Date
: 2025-07-12
Size
: 189kb
User
:
沈郑燕
[
matlab
]
OFDM-Tutorial[1]
DL : 0
Date
: 2025-07-12
Size
: 72kb
User
:
火箭
[
Other
]
matlabJiaoCHeng
DL : 0
Matlab的教程 对于初学者来说很有帮助-Matlab tutorial helpful for a newcomer
Date
: 2025-07-12
Size
: 283kb
User
:
sjx
[
Program doc
]
MATLAB_JiaoChen
DL : 0
这是个MATLAB教程,讲的挺详细的,挺综合,重点突出,适合初学者看。-This is a MATLAB tutorial, speak very detailed, very comprehensive, focused and look for beginners.
Date
: 2025-07-12
Size
: 186kb
User
:
ligang
[
Books
]
MATLAB7
DL : 0
matlab学习教程,经典 matlab学习教程,经典 -matlab tutorial learning, classical learning tutorial matlab, matlab classical learning tutorial, classic
Date
: 2025-07-12
Size
: 11.41mb
User
:
[
Other
]
IntroMatlab
DL : 0
MATLAB工具箱\教程psl and pca 工具箱使用方法-MATLAB toolbox tutorial psl and pca toolbox to use
Date
: 2025-07-12
Size
: 4.27mb
User
:
士大夫
[
Other
]
matlab
DL : 0
关于MATLAB程序设计的PPT教程,大家一起交流。-On MATLAB programming tutorial PPT, with U.S. exchanges.
Date
: 2025-07-12
Size
: 204kb
User
:
臧文乾
[
Other
]
MATLAB
DL : 0
浙江师范大学PPT教程 -Zhejiang Normal University Zhejiang Normal University PPT Tutorial Tutorial PPT
Date
: 2025-07-12
Size
: 28kb
User
:
唐自威
[
matlab
]
pca
DL : 1
关于matlab主元分析的一个简单的实例,可供初学者参考学习。-Matlab PCA on a simple example of reference for beginners to learn.
Date
: 2025-07-12
Size
: 3kb
User
:
刘明
[
Other
]
Matlab
DL : 0
基于matlab的倒立摆系统实时模糊控制教程-Matlab inverted pendulum based on real-time fuzzy control system tutorial
Date
: 2025-07-12
Size
: 252kb
User
:
[
Software Engineering
]
STK-training-tutorial
DL : 0
STK 是卫星仿真工具包,由美国AGI开发的一款在航天工业领域中处于绝对领先地位的商品化分析软件。这里附上的是这个软件的教程。-STK is a satellite simulation tool kit developed by the United States AGI a field in the aerospace industry in the commercialization of the absolute leading position analysis software. Here attached is the software tutorial.
Date
: 2025-07-12
Size
: 8.73mb
User
:
朝霞
[
Other
]
Simulink1
DL : 0
MATLAB中SIMULINK模块的教程 -SIMULINK module in MATLAB Tutorial
Date
: 2025-07-12
Size
: 5.86mb
User
:
王浩
[
Other
]
Simulink2
DL : 0
MATLAB中SIMULINK模块的教程-SIMULINK module in MATLAB Tutorial
Date
: 2025-07-12
Size
: 5.19mb
User
:
王浩
[
Other
]
Simulink3
DL : 0
MATLAB中SIMULINK模块的教程-SIMULINK module in MATLAB Tutorial
Date
: 2025-07-12
Size
: 10.27mb
User
:
王浩
[
Other
]
Matlabgetstart
DL : 0
美国大学Matlab入门教程,对matlab学习以及相关专业英语学习都有很大帮助-American University in Matlab Tutorial on matlab study and related professional English language learning are of great help
Date
: 2025-07-12
Size
: 1.18mb
User
:
ruizebao
[
Other
]
Matlab-Simple-Editon
DL : 0
Doc版的Matlab编程教程-精简版噢,很不错啊-Doc version of Matlab Programming Tutorial- Starter Edition Oh, very错啊
Date
: 2025-07-12
Size
: 124kb
User
:
胡兵
[
Algorithm
]
work
DL : 0
MATLAB教程中提到的根据C-14计算化石生活年代的程序,放在MATLAB文件夹下的工作目录中,使用C14命令即可运行,根据教程要求写成然后换成中文提示方式,呵呵,方便处学者!-MATLAB tutorial mentioned in the calculation in accordance with C-14 during the process of living fossils, on the MATLAB folder under the working directory, use the C14 command to run, according to curriculum requirements written into Chinese and then prompts the way, huh, huh, convenient Office scholars!
Date
: 2025-07-12
Size
: 1kb
User
:
黄敏
[
matlab
]
MATLAB_jingtong
DL : 0
Matlab教程一,包括多项式、曲线拟合、三次样条等。-Matlab Tutorial 1, including polynomials, curve fitting, cubic spline and so on.
Date
: 2025-07-12
Size
: 625kb
User
:
张立青
[
matlab
]
matlab
DL : 0
matlab学习资料,对于初学者来说是一本不错的入门教程-matlab learning materials, for beginners is a good introductory tutorial
Date
: 2025-07-12
Size
: 669kb
User
:
田洪伟
«
1
2
3
4
5
6
7
8
9
10
...
50
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.